package top.infopub.mgr.bpa.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import top.infopub.generic.GenericDao;
import top.infopub.generic.GenericServiceImpl;
import top.infopub.mgr.bpa.dao.ProContractDetailDao;
import top.infopub.mgr.bpa.domain.ProContractDetailAndSubDomain;
import top.infopub.model.bpa.ProContractDetail;
import top.infopub.mgr.bpa.service.ProContractDetailService;

@Service
public class ProContractDetailServiceImpl extends GenericServiceImpl<ProContractDetail, String> implements
		ProContractDetailService {

	@Autowired
	private ProContractDetailDao proContractDetailDao;
	
	@Override
	public GenericDao<ProContractDetail, String> getDao() {
		return proContractDetailDao;
	}

    @Override
    public List<ProContractDetail> selectByDetail(String proContractId) {
        return proContractDetailDao.selectByDetail(proContractId);
    }

    @Override
    public List<ProContractDetailAndSubDomain> selectDetailAndSub(String proContractId,String feeType1,String feeType3,String feeSmallType1,String feeSmallType2,String levels) {
        return proContractDetailDao.selectDetailAndSub(proContractId,feeType1,feeType3,feeSmallType1,feeSmallType2,levels);
    }

}